unsafe:
SELECT top 100
n.guid
, type = 'project-list-item'
, seq_no = ROW_NUMBER() over (
order by nomination_date desc
)
from vwAwardsNomination n INNER JOIN
AwardsCategory c ON n.award = c.Category_ID inner join
app a on n.awards_id = a.account_ref
where 1=1
and entrant_id is not null
and nomination_complete = 'Yes'
and nomination_status = 'Live'
AND ( 1=0
or 1=1
)
AND not n.awards_id like 'WAH%'
and (nom_organisat like '%Groupcall Limited%' or pcontact_organisat like '%Groupcall Limited%')
order by seq_no